s=input('输入内容')
letter=0
space=0
digit=0
other=0
for i in s:
    if i.isalpha():
        letter+=1
    elif i.isspace():
        space+=1
    elif i.isdigit():
        digit+=1
    else:
        other+=1
print('字母个数{},空格个数{},数字字数{}，其他字符个数{}'.format(letter,space,digit,other))
